# Contributor: Sergiy Stupar <owner@sestolab.pp.ua>
# Maintainer: Sergiy Stupar <owner@sestolab.pp.ua>
pkgname=rdrview
pkgver=0.1.1
pkgrel=0
pkgdesc="Command line tool to extract the main content from a webpage"
url="https://github.com/eafer/rdrview"
arch="all"
license="Apache-2.0"
makedepends="libxml2-dev curl-dev libseccomp-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/eafer/rdrview/archive/v$pkgver.tar.gz
	curl-7.85.0-CURLOPT_PROTOCOLS-deprecation.patch
	"
options="!check" # tests are quite involved and have a bunch of requirements

build() {
	make
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
49a3f2f7ce1937ff4fdad67823763ab5ac57d1a9dce71ac05701a7c22454da989758c74b87f81bf9f07704690be3435d740ae33a8510b8579e76068b69a6119d  rdrview-0.1.1.tar.gz
6890f2b7b90251d2fe5479668defa911f769e35c136b818c4cc44821d429c284d8ef1b6d781f898ee6caf4ba3c34f440647a96f486dc0c23bbc8c93c848bff65  curl-7.85.0-CURLOPT_PROTOCOLS-deprecation.patch
"
